<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Core Plot (iOS): Source/CPTPieChart.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="core-plot-logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Core Plot (iOS)
   
   </div>
   <div id="projectbrief">Cocoa plotting framework for Mac OS X and iOS</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Animation&#160;&&#160;Constants</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_c_p_t_pie_chart_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Source/CPTPieChart.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_c_p_t_pie_chart_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#import &quot;<a class="code" href="_c_p_t_definitions_8h.html">CPTDefinitions.h</a>&quot;</span>
<a name="l00002"></a>00002 <span class="preprocessor">#import &quot;<a class="code" href="_c_p_t_plot_8h.html">CPTPlot.h</a>&quot;</span>
<a name="l00003"></a>00003 <span class="preprocessor">#import &lt;Foundation/Foundation.h&gt;</span>
<a name="l00004"></a>00004 
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_color.html" title="An immutable color.">CPTColor</a>;
<a name="l00008"></a>00008 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_fill.html" title="Draws area fills.">CPTFill</a>;
<a name="l00009"></a>00009 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_mutable_numeric_data.html" title="An annotated NSMutableData type.">CPTMutableNumericData</a>;
<a name="l00010"></a>00010 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_numeric_data.html" title="An annotated NSData type.">CPTNumericData</a>;
<a name="l00011"></a>00011 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_pie_chart.html" title="A pie chart.">CPTPieChart</a>;
<a name="l00012"></a>00012 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_text_layer.html" title="A Core Animation layer that displays a single line of text drawn in a uniform style.">CPTTextLayer</a>;
<a name="l00013"></a>00013 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_line_style.html" title="Immutable wrapper for various line drawing properties.">CPTLineStyle</a>;
<a name="l00014"></a>00014 
<a name="l00017"></a>00017 <span class="keyword">extern</span> <a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *<span class="keyword">const</span> <a class="code" href="_c_p_t_pie_chart_8h.html#aec9c9b4fd28157a59a8cf195a9b3c99c" title="Pie slice widths.">CPTPieChartBindingPieSliceWidthValues</a>;
<a name="l00019"></a>00019 
<a name="l00023"></a><a class="code" href="_c_p_t_pie_chart_8h.html#afced7aba4d01749552ff7a7e14b8f17a">00023</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="_c_p_t_pie_chart_8h.html#afced7aba4d01749552ff7a7e14b8f17a" title="Enumeration of pie chart data source field types.">_CPTPieChartField</a> {
<a name="l00024"></a><a class="code" href="_c_p_t_pie_chart_8h.html#afced7aba4d01749552ff7a7e14b8f17aa15db0cd33b30788aa50b97aa726f6dc9">00024</a>     <a class="code" href="_c_p_t_pie_chart_8h.html#afced7aba4d01749552ff7a7e14b8f17aa15db0cd33b30788aa50b97aa726f6dc9" title="Pie slice width.">CPTPieChartFieldSliceWidth</a>,           
<a name="l00025"></a><a class="code" href="_c_p_t_pie_chart_8h.html#afced7aba4d01749552ff7a7e14b8f17aac3b70183d44bfb77f55e254499b78948">00025</a>     <a class="code" href="_c_p_t_pie_chart_8h.html#afced7aba4d01749552ff7a7e14b8f17aac3b70183d44bfb77f55e254499b78948" title="Pie slice width normalized [0, 1].">CPTPieChartFieldSliceWidthNormalized</a>, 
<a name="l00026"></a><a class="code" href="_c_p_t_pie_chart_8h.html#afced7aba4d01749552ff7a7e14b8f17aab2c5f26ce518f63f13716b236df21540">00026</a>     <a class="code" href="_c_p_t_pie_chart_8h.html#afced7aba4d01749552ff7a7e14b8f17aab2c5f26ce518f63f13716b236df21540" title="Cumulative sum of pie slice widths.">CPTPieChartFieldSliceWidthSum</a>         
<a name="l00027"></a>00027 }
<a name="l00028"></a>00028 <a class="code" href="_c_p_t_pie_chart_8h.html#a3e101c7b4a23fbcaccbbfd9d9c16486d" title="Enumeration of pie chart data source field types.">CPTPieChartField</a>;
<a name="l00029"></a>00029 
<a name="l00033"></a><a class="code" href="_c_p_t_pie_chart_8h.html#a6727858c3123c808295c244c532d4f35">00033</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="_c_p_t_pie_chart_8h.html#a6727858c3123c808295c244c532d4f35" title="Enumeration of pie slice drawing directions.">_CPTPieDirection</a> {
<a name="l00034"></a><a class="code" href="_c_p_t_pie_chart_8h.html#a6727858c3123c808295c244c532d4f35aa1b4df7575240af272a52cc0d9401185">00034</a>     <a class="code" href="_c_p_t_pie_chart_8h.html#a6727858c3123c808295c244c532d4f35aa1b4df7575240af272a52cc0d9401185" title="Pie slices are drawn in a clockwise direction.">CPTPieDirectionClockwise</a>,       
<a name="l00035"></a><a class="code" href="_c_p_t_pie_chart_8h.html#a6727858c3123c808295c244c532d4f35a455c3e146d805d59058112f6bcf73301">00035</a>     <a class="code" href="_c_p_t_pie_chart_8h.html#a6727858c3123c808295c244c532d4f35a455c3e146d805d59058112f6bcf73301" title="Pie slices are drawn in a counter-clockwise direction.">CPTPieDirectionCounterClockwise</a> 
<a name="l00036"></a>00036 }
<a name="l00037"></a>00037 <a class="code" href="_c_p_t_pie_chart_8h.html#ab1e032df0b818478c893aaa61d4de1eb" title="Enumeration of pie slice drawing directions.">CPTPieDirection</a>;
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="preprocessor">#pragma mark -</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>
<a name="l00044"></a><a class="code" href="protocol_c_p_t_pie_chart_data_source-p.html">00044</a> <span class="keyword">@protocol </span><a class="code" href="protocol_c_p_t_pie_chart_data_source-p.html" title="A pie chart data source.">CPTPieChartDataSource</a>&lt;<a class="code" href="protocol_c_p_t_plot_data_source-p.html" title="A plot data source.">CPTPlotDataSource</a>&gt;
<a name="l00045"></a>00045 <span class="keyword">@optional</span>
<a name="l00046"></a>00046 
<a name="l00052"></a>00052 -(<a class="code" href="interface_c_p_t_fill.html" title="Draws area fills.">CPTFill</a> *)sliceFillForPieChart:(<a class="code" href="interface_c_p_t_pie_chart.html" title="A pie chart.">CPTPieChart</a> *)pieChart recordIndex:(<a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)index;
<a name="l00053"></a>00053 
<a name="l00059"></a>00059 -(CGFloat)radialOffsetForPieChart:(<a class="code" href="interface_c_p_t_pie_chart.html" title="A pie chart.">CPTPieChart</a> *)pieChart recordIndex:(<a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)index;
<a name="l00060"></a>00060 
<a name="l00063"></a>00063 
<a name="l00071"></a>00071 -(<a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *)legendTitleForPieChart:(<a class="code" href="interface_c_p_t_pie_chart.html" title="A pie chart.">CPTPieChart</a> *)pieChart recordIndex:(<a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)index;
<a name="l00072"></a>00072 
<a name="l00074"></a>00074 <span class="keyword">@end</span>
<a name="l00075"></a>00075 
<a name="l00076"></a>00076 <span class="preprocessor">#pragma mark -</span>
<a name="l00077"></a>00077 <span class="preprocessor"></span>
<a name="l00081"></a><a class="code" href="protocol_c_p_t_pie_chart_delegate-p.html">00081</a> <span class="keyword">@protocol </span><a class="code" href="protocol_c_p_t_pie_chart_delegate-p.html" title="Pie chart delegate.">CPTPieChartDelegate</a>&lt;<a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html">NSObject</a>&gt;
<a name="l00082"></a>00082 
<a name="l00083"></a>00083 <span class="keyword">@optional</span>
<a name="l00084"></a>00084 
<a name="l00085"></a>00085 <span class="comment">// @name Point selection</span>
<a name="l00087"></a>00087 <span class="comment"></span>
<a name="l00092"></a>00092 -(void)pieChart:(<a class="code" href="interface_c_p_t_pie_chart.html" title="A pie chart.">CPTPieChart</a> *)plot sliceWasSelectedAtRecordIndex:(<a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)index;
<a name="l00093"></a>00093 
<a name="l00095"></a>00095 
<a name="l00096"></a>00096 <span class="keyword">@end</span>
<a name="l00097"></a>00097 
<a name="l00098"></a>00098 <span class="preprocessor">#pragma mark -</span>
<a name="l00099"></a>00099 <span class="preprocessor"></span>
<a name="l00100"></a><a class="code" href="interface_c_p_t_pie_chart.html">00100</a> <span class="keyword">@interface </span><a class="code" href="interface_c_p_t_pie_chart.html" title="A pie chart.">CPTPieChart</a> : <a class="code" href="interface_c_p_t_plot.html" title="An abstract plot class.">CPTPlot</a> {
<a name="l00101"></a>00101     <span class="keyword">@private</span>
<a name="l00102"></a><a class="code" href="group__plot_animation_pie_chart.html#ga6bae24e928917347230bab548418ceea">00102</a>     CGFloat <a class="code" href="group__plot_animation_pie_chart.html#ga6bae24e928917347230bab548418ceea" title="The radius of the overall pie chart. Defaults to 80% of the initial frame size.">pieRadius</a>;
<a name="l00103"></a><a class="code" href="group__plot_animation_pie_chart.html#gaaf477318b2ce1ad016c532d386b5379e">00103</a>     CGFloat <a class="code" href="group__plot_animation_pie_chart.html#gaaf477318b2ce1ad016c532d386b5379e" title="The inner radius of the pie chart, used to create a &quot;donut hole&quot;. Defaults to 0.">pieInnerRadius</a>;
<a name="l00104"></a><a class="code" href="group__plot_animation_pie_chart.html#ga139122421a061b2ca1622bdebca5b1c3">00104</a>     CGFloat <a class="code" href="group__plot_animation_pie_chart.html#ga139122421a061b2ca1622bdebca5b1c3" title="The starting angle for the first slice in radians. Defaults to pi/2.">startAngle</a>;
<a name="l00105"></a><a class="code" href="interface_c_p_t_pie_chart.html#ad0218003271a042fe4f1d81df50f3bd1">00105</a>     <a class="code" href="_c_p_t_pie_chart_8h.html#ab1e032df0b818478c893aaa61d4de1eb" title="Enumeration of pie slice drawing directions.">CPTPieDirection</a> <a class="code" href="interface_c_p_t_pie_chart.html#ad0218003271a042fe4f1d81df50f3bd1" title="Determines whether the pie slices are drawn in a clockwise or counter-clockwise direction from the st...">sliceDirection</a>;
<a name="l00106"></a><a class="code" href="group__plot_animation_pie_chart.html#ga4c665d1eb7b562f8ced08a62d980ee2c">00106</a>     <a class="codeRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a> <a class="code" href="group__plot_animation_pie_chart.html#ga4c665d1eb7b562f8ced08a62d980ee2c" title="The position of the center of the pie chart with the x and y coordinates given as a fraction of the w...">centerAnchor</a>;
<a name="l00107"></a><a class="code" href="interface_c_p_t_pie_chart.html#ad42ce799d20617a6c9a8879aea31fbb3">00107</a>     <a class="code" href="interface_c_p_t_line_style.html" title="Immutable wrapper for various line drawing properties.">CPTLineStyle</a> *<a class="code" href="interface_c_p_t_pie_chart.html#ad42ce799d20617a6c9a8879aea31fbb3" title="The line style used to outline the pie slices. If nil, no border is drawn. Defaults to nil...">borderLineStyle</a>;
<a name="l00108"></a><a class="code" href="interface_c_p_t_pie_chart.html#a25deafa6f8e629789652c90789f19b51">00108</a>     <a class="code" href="interface_c_p_t_fill.html" title="Draws area fills.">CPTFill</a> *<a class="code" href="interface_c_p_t_pie_chart.html#a25deafa6f8e629789652c90789f19b51" title="A fill drawn on top of the pie chart. Can be used to add shading/gloss effects. Defaults to nil...">overlayFill</a>;
<a name="l00109"></a>00109 }
<a name="l00110"></a>00110 
<a name="l00111"></a>00111 <span class="keyword">@property</span> (nonatomic, readwrite) CGFloat pieRadius;
<a name="l00112"></a>00112 <span class="keyword">@property</span> (nonatomic, readwrite) CGFloat pieInnerRadius;
<a name="l00113"></a>00113 <span class="keyword">@property</span> (nonatomic, readwrite) CGFloat startAngle;
<a name="l00114"></a>00114 <span class="keyword">@property</span> (nonatomic, readwrite) <a class="code" href="_c_p_t_pie_chart_8h.html#ab1e032df0b818478c893aaa61d4de1eb" title="Enumeration of pie slice drawing directions.">CPTPieDirection</a> sliceDirection;
<a name="l00115"></a>00115 <span class="keyword">@property</span> (nonatomic, readwrite) <a class="codeRef" href="http://developer.apple.com/iPhone/library/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a> centerAnchor;
<a name="l00116"></a>00116 <span class="keyword">@property</span> (nonatomic, readwrite, copy) <a class="code" href="interface_c_p_t_line_style.html" title="Immutable wrapper for various line drawing properties.">CPTLineStyle</a> *borderLineStyle;
<a name="l00117"></a>00117 <span class="keyword">@property</span> (nonatomic, readwrite, copy) <a class="code" href="interface_c_p_t_fill.html" title="Draws area fills.">CPTFill</a> *overlayFill;
<a name="l00118"></a>00118 
<a name="l00121"></a>00121 +(<a class="code" href="interface_c_p_t_color.html" title="An immutable color.">CPTColor</a> *)defaultPieSliceColorForIndex:(<a class="codeRef" href="http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)pieSliceIndex;
<a name="l00123"></a>00123 
<a name="l00124"></a>00124 <span class="keyword">@end</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_c_p_t_pie_chart_8h.html">CPTPieChart.h</a>      </li>

    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a></li>
   </ul>
 </div>


</body>
</html>
